package com.cangshi.service;

import com.cangshi.dao.UserPlusInfoMapper;
import com.cangshi.entity.UserPlusInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


/**
 * Created by Eoly on 2017/1/16.
 */
@Service("userPlusInfoService")
public class UserPlusInfoServiceImpl implements UserPlusInfoService{

    @Autowired
    UserPlusInfoMapper userPlusInfoMapper;


    public UserPlusInfo findUserPlusInfoByUserId(Integer userId) {
        return userPlusInfoMapper.selectByUserId(userId);
    }

    public int updateUserPlusInfo(UserPlusInfo userPlusInfo) {
        return userPlusInfoMapper.updateByPrimaryKeySelective(userPlusInfo);
    }
}
